import imgSrc from '../assets/image/hm-1.jpg'

function pageImg() {
  const oEle = document.createElement('div')

  // 字体图标
  const fontEle = document.createElement('div')
  const fontSpan = document.createElement('span')
  fontSpan.className = 'iconfont icon-jian size'
  fontEle.appendChild(fontSpan)
  oEle.appendChild(fontEle)

  // 图片
  const oImg = document.createElement('img')
  oImg.src = imgSrc
  oEle.appendChild(oImg)

  // 背景图片
  const oElePack = document.createElement('div')
  oElePack.className = 'pack'
  oEle.appendChild(oElePack)

  return oEle
}

document.body.appendChild(pageImg())
